
#ifndef SLIDERHANDLER_H
#define SLIDERHANDLER_H

#include <BTextual>
#include <BRoundHandler>
#include <BFixedRestraint>
#include <BSliderRestraint>
#include <BBody>

using namespace BWE;

class SliderHandler : public BHandler
{
public:
	SliderHandler();
	~SliderHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void styleEvent(const BEvent& event);
	virtual void freshEvent(const BEvent& event);

protected:
	BHolder<BGroup>			_group;
	BHolder<BBody>			_nodeA;
	BHolder<BBody>			_nodeB;
	BHolder<BBody>			_nodeC;
	BFixedRestraintHolder	_fixedRestraint;
	BSliderRestraintHolder	_sliderRestraint;
	BLine					_axisLine;
	BHolder<BTextual>		_lengthText;

};

#endif

